package kr.hkit.powerjava.chapter22.haksa;

public class Department {
	private int deptNum;
	private String deptName;
	private int floor;
	
	public Department(int deptNum, String deptName) {
		this.deptNum = deptNum;
		this.deptName = deptName;
	}

	public Department(int deptNum, String deptName, int floor) {
		this.deptNum = deptNum;
		this.deptName = deptName;
		this.floor = floor;
	}

	public int getDeptNum() {
		return deptNum;
	}

	public void setDeptNum(int deptNum) {
		this.deptNum = deptNum;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public int getFloor() {
		return floor;
	}

	public void setFloor(int floor) {
		this.floor = floor;
	}

	@Override
	public String toString() {
		return String.format("Department [deptNum=%s, deptName=%s, floor=%s]",
				deptNum, deptName, floor);
	}
	
	
}
